import React, { Component } from 'react'
import './Loading.css'
import loadImg from './loading.gif'

class Loading extends Component {

  constructor(props) {
    super(props)
    this.state = { className: props.isShow ? 'show':'hide' }
  }

  render() {
    return (
      <div>
        <div id="loading-container" className={this.state.className}>
          <div id="loading" >
            <img src={loadImg} alt="loading" />
          </div>
	      </div>
      </div>
    )
  }
}

export default Loading